package com.siwei.mes.service;

import com.github.pagehelper.PageInfo;
import com.siwei.mes.common.query.PageQuery;
import com.siwei.mes.entity.ExperimentSampleTestProject;

import java.util.List;

/**
 * 抽样样品试验项目(ExperimentSampleTestProject)表服务接口
 *
 * @author linzi
 * @since 2023-12-31 20:37:12
 */
public interface ExperimentSampleTestProjectService {

    /**
     * 新增
     *
     * @param entity
     * @return
     */
    Long create(ExperimentSampleTestProject entity);

    /**
     * 修改
     *
     * @param entity
     */
    void update(ExperimentSampleTestProject entity);

    /**
     * 删除
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 获取所有分组  分页
     *
     * @param query
     * @return
     */
    PageInfo<ExperimentSampleTestProject> getPage(PageQuery<ExperimentSampleTestProject, ExperimentSampleTestProject> query);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    ExperimentSampleTestProject loadById(Long id);

    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentSampleTestProject> getAll(ExperimentSampleTestProject entity);
}
